package Eclass;

import java.io.Serializable;
import java.util.*;

import validationInput.ValidateInput;

public class ExamPrepDetailModel implements Serializable {
	public Integer examPrepDetailId;
	public Integer examPrepId;
	public Integer classId;
	public String className;
	public Integer noOfQuestion;
	
	//Rere 28 Des 2013
	public Integer totalNoOfQuestion;
	
	public Integer getNoOfQuestion() {
		return noOfQuestion;
	}
	public void setNoOfQuestion(Integer noOfQuestion) {
		this.noOfQuestion = noOfQuestion;
	}
	public Integer getExamPrepDetailId() {
		return examPrepDetailId;
	}
	public void setExamPrepDetailId(Integer examPrepDetailId) {
		this.examPrepDetailId = examPrepDetailId;
	}
	public Integer getExamPrepId() {
		return examPrepId;
	}
	public void setExamPrepId(Integer examPrepId) {
		this.examPrepId = examPrepId;
	}
	public Integer getClassId() {
		return classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
	//Rere 28 Des 2013
	public Integer getTotalNoOfQuestion() {
		return totalNoOfQuestion;
	}
	public void setTotalNoOfQuestion(Integer totalNoOfQuestion) {
		this.totalNoOfQuestion = totalNoOfQuestion;
	}
	
	@Override
	public String toString() {
		String s = "	Exam Prep Detail\n";
		s+="examPrepDetailId : "+examPrepDetailId+"\n";
		s+="examPrepId : "+examPrepId+"\n";
		s+="classId : "+classId+"\n";
		s+="className : "+className+"\n";
		s+="noOfQuestion : "+noOfQuestion+"\n";
		
		return s;
	}
	
	public void validateModel(){
		ValidateInput vi = new ValidateInput();
		className = vi.getFixInputStr(className);
	}	
}
